package com.zxy.ziems.server.energy.convertor;

import com.zxy.ziems.server.energy.pojo.dto.EnergyPriceDTO;
import com.zxy.ziems.server.energy.pojo.entity.EnergyPriceEntity;
import com.zxy.ziems.server.energy.pojo.vo.EnergyPriceVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper(uses = EnergyPriceConvertor.class)
public interface EnergyPriceConvertor {

    EnergyPriceConvertor INSTANT = Mappers.getMapper(EnergyPriceConvertor.class);

    EnergyPriceEntity dto2Entity(EnergyPriceDTO energyPriceDTO);

    EnergyPriceVO entity2Vo(EnergyPriceEntity entity);
}
